import CommenItem from '../../Childs/components/CommenItem.vue'
import axios from 'axios'
export default {
  data() {
    return {
      comments: [],
    }
  },
  mounted() {
    this.getData()
  },
  methods: {
    getData() {
      axios.get('http://localhost:3001/comment').then((res) => {
        console.log(res)
        this.comments = res.data.result
      })
    },
  },

  components: {
    CommenItem,
  },
}
